elfinder-2.x-servlet implements a java servlet for elfinder-2.x connector
elfinder is an Open-source file manager for web, written in JavaScript using jQuery and jQuery UI.see also http://elfinder.org
for elfinder-1.2 users, please go to https://github.com/Studio-42/elfinder-servlet.
importing elfinder-2.x-servletthis project is released as an artifact on the central repostory
use
org.grapheco elfinder-servlet-2 1.4 classesto add dependency in your pom.xml
building elfinder-2.x-servletthe source files includes:
src/main/webapp : a normal j2ee application includes elfinder, WEB-INF...src/main/java: source codes for elfinder-servletsrc/main/resources: source codes for elfinder-servletTo build this project with maven run:
mvn installto run this project within a jetty container use:
mvn jetty:runusing elfinder-2.x-servlet in your web appsjust use following codes to tell elfinder to connect with server-side servlet:
$(document).ready(function() {$('#elfinder').elfinder({url : 'elfinder-servlet/connector',});});in your web.xml, following codes should be added to enable the servlet:
elfinderorg.springframework.web.servlet.DispatcherServletelfinder/elfinder-servlet/*yes! elfinder-2.x-servlet is developed upon SpringFramework (http://springframework.org)
an example elfinder-servlet.xml configuration is shown below: